package com.zksk.mbg.admin.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.zksk.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 经办人信息表
 * </p>
 *
 * @author Zksk Acmen
 * @since 2022-12-09
 */
@Data
@Accessors(chain = true)
@TableName("platform_fact_member_operator")
@ApiModel(value = "MemberOperator对象", description = "经办人信息表")
public class MemberOperator extends BaseEntity {

    @ApiModelProperty("表主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("用户编号")
    @TableField("member_id")
    private Long memberId;

    @ApiModelProperty("经办人姓名")
    @TableField("operator_name")
    private String operatorName;

    @ApiModelProperty("经办人联系电话")
    @TableField("operator_phone")
    private String operatorPhone;

    @ApiModelProperty("经办人身份证")
    @TableField("operator_code")
    private String operatorCode;

    @ApiModelProperty("是否默认经办人（0 是 2不是）")
    @TableField("default_op")
    private Integer defaultOp;

    @ApiModelProperty("删除标识（0 正常 2删除）")
    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @TableLogic
    private Integer delFlag;


    public static final String ID = "id";

    public static final String MEMBER_ID = "member_id";

    public static final String OPERATOR_NAME = "operator_name";

    public static final String OPERATOR__PHONE = "operator_phone";

    public static final String OPERATOR_CODE = "operator_code";

    public static final String DEFAULT_OP = "default_op";

    public static final String DEL_FLAG = "del_flag";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
